/**
 * output package name
 */
package com.kingdee.eas.fi.gl;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import com.kingdee.util.enums.IntEnum;

/**
 * output class name
 */
public class SourceType extends IntEnum
{
    public static final int HANDCRAFT_VALUE = 0;
    public static final int PROFIT_AND_LOSS_VALUE = 1;
    public static final int PERIOD_END_EXCHANGERATE_ADJUSTMENT_VALUE = 2;
    public static final int NONE_VALUE = 3;
    public static final int OTHER_IMPORT_VALUE = 4;
    public static final int OTHER_ACCOUNT_VALUE = 5;
    public static final int ADJUST_VALUE = 6;
    public static final int ACCOUNTADJUST_VALUE = 7;

    public static final SourceType HANDCRAFT = new SourceType("HANDCRAFT", HANDCRAFT_VALUE);
    public static final SourceType PROFIT_AND_LOSS = new SourceType("PROFIT_AND_LOSS", PROFIT_AND_LOSS_VALUE);
    public static final SourceType PERIOD_END_EXCHANGERATE_ADJUSTMENT = new SourceType("PERIOD_END_EXCHANGERATE_ADJUSTMENT", PERIOD_END_EXCHANGERATE_ADJUSTMENT_VALUE);
    public static final SourceType NONE = new SourceType("NONE", NONE_VALUE);
    public static final SourceType OTHER_IMPORT = new SourceType("OTHER_IMPORT", OTHER_IMPORT_VALUE);
    public static final SourceType OTHER_ACCOUNT = new SourceType("OTHER_ACCOUNT", OTHER_ACCOUNT_VALUE);
    public static final SourceType ADJUST = new SourceType("ADJUST", ADJUST_VALUE);
    public static final SourceType ACCOUNTADJUST = new SourceType("ACCOUNTADJUST", ACCOUNTADJUST_VALUE);

    /**
     * construct function
     * @param integer sourceType
     */
    private SourceType(String name, int sourceType)
    {
        super(name, sourceType);
    }
    
    /**
     * getEnum function
     * @param String arguments
     */
    public static SourceType getEnum(String sourceType)
    {
        return (SourceType)getEnum(SourceType.class, sourceType);
    }

    /**
     * getEnum function
     * @param String arguments
     */
    public static SourceType getEnum(int sourceType)
    {
        return (SourceType)getEnum(SourceType.class, sourceType);
    }

    /**
     * getEnumMap function
     */
    public static Map getEnumMap()
    {
        return getEnumMap(SourceType.class);
    }

    /**
     * getEnumList function
     */
    public static List getEnumList()
    {
         return getEnumList(SourceType.class);
    }
    
    /**
     * getIterator function
     */
    public static Iterator iterator()
    {
         return iterator(SourceType.class);
    }
}